home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / scsh / nextbs.c < prev    next >
C/C++ Source or Header  |  1995-10-13  |  308b  |  18 lines

  1. /* Losing reimplimentation of Posix calls for NextSTEP. */
  2.  
  3. #include <stdio.h>
  4. #include <sys/types.h>
  5. #include <sgtty.h>
  6.  
  7. int tcsetpgrp1(int fd, int pid)
  8. {
  9.     int i;
  10.     return ioctl(0, TIOCSPGRP, &i);
  11.     }
  12.  
  13. int tcgetpgrp1(int fd)
  14. {
  15.     int i, j;
  16.     return (ioctl(0, TIOCGPGRP, &i) == -1) ? -1 : i;
  17.     }
  18.